﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.Text;

namespace Oliving.Edge.Model.Models.SystemBase
{


    /// <summary>
    /// 部门表
    /// </summary>
    ///   [SugarTable(TableName = "Sys_Department", TableDescription = "部门表")]
    [SugarTable("Sys_Department")]
    //[SugarTable("Sys_Department", "部门表")]
    public class SysDepartmentModel
    {
        /// <summary>
        /// 部门
        /// </summary>
        [SugarColumn(IsNullable = false, IsPrimaryKey = true, IsIdentity = true, ColumnDescription = "部门ID")]
        public int DeptID { get; set; }

        /// <summary>
        /// 部门父id
        /// </summary>
        [SugarColumn(IsNullable = true, ColumnDescription = "部门父id")]
        public int DeptParent { get; set; }



        /// <summary>
        /// 部门姓名
        /// </summary>
        [SugarColumn(ColumnDataType = "nvarchar", Length = 200, IsNullable = true, ColumnDescription = "部门名称")]
        public string DeptName { get; set; }





        /// <summary>
        /// 部门代码
        /// </summary>
        [SugarColumn(ColumnDataType = "nvarchar", Length = 200, IsNullable = true, ColumnDescription = "部门代码")]
        public string DeptCode { get; set; }

        /// <summary>
        /// 部门状态
        /// </summary>
        [SugarColumn(ColumnDataType = "nvarchar", Length = 200, IsNullable = true, ColumnDescription = "部门状态")]
        public string DeptState { get; set; }


        /// <summary>
        /// 创建时间
        /// </summary>
        [SugarColumn(ColumnDescription = "创建时间")]
        public DateTime CreateTime { get; set; } = DateTime.Now;




    }
}
